package com.tos.second.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class Orders implements Serializable {


    @Serial
    private static final long serialVersionUID = 1L;

    private Long id;

    // 订单编号
    private String number;

    // 卖家ID
    private Long sellerId;

    // 买家ID
    private Long buyerId;

    // 订单金额
    private BigDecimal amount;



    // 订单时间
    private LocalDateTime orderTime;

    // 收货地址
    private String address;

    // 卖家名称
    private String sellerName;

    // 买家名称
    private String buyerName;

    // 订单描述
    private String description;

    // 商品ID
    private Long goodsId;
    // 分类id
    private Long categoryId;

    //订单状态
    private Integer status;

}
